/**
 * Copyright (c) Daniel Centore
 *
 * ex: set filetype=java expandtab tabstop=4 shiftwidth=4 :
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of
 * the License, or (at your option) any later version.
 *
 * This code is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * This code is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published
 * by the Free Software Foundation.
 */
package ronp.anim.gui.tools;

import ronp.anim.data.Grip;

/**
 * Represents a {@link Tool} which supports dragging.
 * Simply implement it and the rest will automatically be taken care of.
 * 
 * @author Daniel Centore
 *
 */
public interface DraggableTool
{
	/**
	 * Called when the mouse is dragged
	 * @param x Current X coordinate
	 * @param y Current Y coordinate
	 * @param initialX The initial X coordinate
	 * @param initialY The initial Y coordinate
	 * @param starting The {@link Grip} that we (might) be manipulating
	 */
	public void mouseDragged(int x, int y, int initialX, int initialY, Grip starting);
}
